<template>
  <van-nav-bar :title="title" left-text="返回" left-arrow @click-left="onClickLeft">
    <template #title v-if="logo">
      <img style="height: 40px;" src="@/assets/imgs/logo-myzx-text.png" alt="">
    </template>
  </van-nav-bar>
  <slot />
</template>

<script lang="ts" setup>
import { defineProps } from 'vue';
defineProps(["title", "logo"]);
const onClickLeft = () => history.back();
</script>

<style></style>